# -*- coding: utf-8 -*-

'''
权限定义
'''


class Permission:
    StatisticalAnalysis_Select = {'permission': 'StatisticalAnalysis_Select', 'per_name': '查看权限',
                                  'module': 'StatisticalAnalysis', 'module_name': '统计分析', 'permission_state': 'default'}
    AllSign_Select = {'permission': 'AllSign_Select', 'per_name': '所有标识查看权限',
                      'module': 'CompanyTemplate', 'module_name': '企业标识', 'permission_state': 'default'}
    CompanyTemplate_Select = {'permission': 'CompanyTemplate_Select', 'per_name': '查看权限',
                              'module': 'CompanyTemplate', 'module_name': '企业标识', 'permission_state': 'default'}
    CompanyTemplate_Add = {'permission': 'CompanyTemplate_Add', 'per_name': '增加权限',
                           'module': 'CompanyTemplate', 'module_name': '企业标识', 'permission_state': 'default'}
    CompanyTemplate_Select_Admin = {'permission': 'CompanyTemplate_Select_Admin', 'per_name': '所有企业查看权限',
                                    'module': 'CompanyTemplate', 'module_name': '企业标识', 'permission_state': 'default'}
    CompanyTemplate_Select_Company = {'permission': 'CompanyTemplate_Select_Company', 'per_name': '具体企业查看权限',
                                      'module': 'CompanyTemplate', 'module_name': '企业标识', 'permission_state': 'default'}
    CategoryTemplate_Select = {'permission': 'CategoryTemplate_Select', 'per_name': '增删改查权限',
                               'module': 'CategoryTemplate', 'module_name': '品类标识', 'permission_state': 'default'}
    SingleProduct_Select = {'permission': 'SingleProduct_Select', 'per_name': '增删改查权限',
                            'module': 'SingleProduct', 'module_name': '单品标识', 'permission_state': 'default'}
    ExternalLinks_Select = {'permission': 'ExternalLinks_Select', 'per_name': '增删改查权限',
                            'module': 'ExternalLinks', 'module_name': '跳转标识', 'permission_state': 'default'}
    ProductClassify_Select = {'permission': 'ProductClassify_Select', 'per_name': '产品分类增删改查权限',
                              'module': 'ProductClassify', 'module_name': '产品分类管理', 'permission_state': 'default'}
    Product_Select = {'permission': 'Product_Select', 'per_name': '产品标识增删改查权限',
                      'module': 'Product', 'module_name': '产品标识管理', 'permission_state': 'default'}
    Stencil_Select = {'permission': 'Stencil_Select', 'per_name': '模版管理增删改查权限',
                      'module': 'Stencilanage', 'module_name': '模版管理', 'permission_state': 'default'}
    UserManage_Select = {'permission': 'UserManage_Select', 'per_name': '用户增删改查权限',
                         'module': 'SystemManage', 'module_name': '系统管理', 'permission_state': 'default'}
    RolePermission_Select = {'permission': 'RolePermission_Select', 'per_name': '角色增删改查权限',
                             'module': 'SystemManage', 'module_name': '系统管理', 'permission_state': 'default'}
    SecuritySettings_Select = {'permission': 'SecuritySettings_Select', 'per_name': '安全设置增删改查权限',
                               'module': 'SystemManage', 'module_name': '系统管理', 'permission_state': 'default'}

    def permission_list(self):
        permission_list = [self.StatisticalAnalysis_Select, self.AllSign_Select, self.CompanyTemplate_Select, self.CompanyTemplate_Add, self.CompanyTemplate_Select_Admin, self.CompanyTemplate_Select_Company, self.CategoryTemplate_Select, self.SingleProduct_Select, self.ExternalLinks_Select, self.ProductClassify_Select, self.Product_Select, self.Stencil_Select,
                           self.UserManage_Select, self.RolePermission_Select, self.SecuritySettings_Select]
        return permission_list
